package com.yungu.swift.socket.communication.message;

import com.yungu.swift.socket.communication.message.base.Message;
import com.yungu.swift.socket.communication.message.base.MessageType;

/**
 * UploadLocationResponseMessage 位置上传响应报文
 *
 * @author cuixiuyin
 * @date 2018/12/28
 */
public class GetLocationResponseMessage extends Message {


    private String locationUuid;
    private boolean success;
    private String msg;
    /**
     * 经度
     */
    private Double lng;
    /**
     * 纬度
     */
    private Double lat;

    /**
     * 方向角
     */
    private Double angle;


    public GetLocationResponseMessage(String locationUuid, Double lng, Double lat, boolean success, String msg) {
        super();
        super.setType(MessageType.GET_LOCATION_RESPONSE);
        this.locationUuid = locationUuid;
        this.success = success;
        this.msg = msg;
        this.lng = lng;
        this.lat = lat;
    }

    public GetLocationResponseMessage(String locationUuid, Double lng, Double lat,Double angle,boolean success, String msg) {
        super();
        super.setType(MessageType.GET_LOCATION_RESPONSE);
        this.locationUuid = locationUuid;
        this.success = success;
        this.msg = msg;
        this.lng = lng;
        this.lat = lat;
        this.angle = angle;
    }

    public String getLocationUuid() {
        return locationUuid;
    }

    public void setLocationUuid(String locationUuid) {
        this.locationUuid = locationUuid;
    }

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Double getLng() {
        return lng;
    }

    public void setLng(Double lng) {
        this.lng = lng;
    }

    public Double getLat() {
        return lat;
    }

    public void setLat(Double lat) {
        this.lat = lat;
    }

    public Double getAngle() {
        return angle;
    }

    public void setAngle(Double angle) {
        this.angle = angle;
    }
}
